package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.reflect.MalformedParameterizedTypeException;
import java.util.HashMap;
import java.util.Map;

/**
 * <b><code>DemoController</code></b>
 * <p/>
 * Description
 * <p/>
 * <b>Creation Time:</b> 2019/10/6 16:36.
 *
 * @author liumianhong
 * @since jenkins-demo
 */
@RestController
public class DemoController {
    @GetMapping("/index")
    public Map<String, Object> index(){
        Map<String , Object> map = new HashMap<>();
        map.put("msg", "hello word");
        return map;
    }
}
